//
//  HomePageProductModel.swift
//  HappyEat
//
//  Created by ctx2016 on 17/1/22.
//  Copyright © 2017年 陌路是我. All rights reserved.
//

import UIKit
import SwiftyJSON

class HomePageProductModel: NSObject {
    /*
     已参与人次
     */
    var hasParticipated:String?
    /*
     商品期号
     */
    var seriesCode:String?
    /*
     还需人次
     */
    var needPerson:String?
    /*
     总需人次
     */
    var sumPerson:String?
    /*
     进度
     */
    var progress:Float?
    /*
     缩略图
     */
    var thumbImg:String?
    /*
     商家名称
     */
    var storeName:String?
    /*
     商品名称
     */
    var productName:String?
    /*
     该期商品ID
     */
    var productSeriesId:String?
    
    init(data:JSON) {
       self.hasParticipated = data["hasParticipated"].stringValue
        self.needPerson = data["needPerson"].stringValue
        self.seriesCode = data["seriesCode"].stringValue
        self.sumPerson = data["sumPerson"].stringValue
        self.progress = data["progress"].floatValue
        self.thumbImg = data["thumbImg"].stringValue
        self.storeName = data["storeName"].stringValue
        self.productName = data["productName"].stringValue
        self.productSeriesId = data["productSeriesId"].stringValue
    }
}
